<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>right</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>

<script>
function check(){
	var myForm = document.forms[0];
	var name   = myForm.name.value;
	if ( name == "0") {
		alert("选择管理员姓名");
		return false;
	}
}


</script>
</head>
<body>

<div id="container">
  <div id="main"> 
    <div id="content"> 
      <div class="weizhi"><span>当前位置：<{$position}></span></div>
      <br />
		<form onsubmit="return check()" action="__URL__/addPower" method = "post"><h5>
			管理员姓名：<select name="name" >
			<option value="0">选择管理员姓名</option>
							<volist name="alladmin" id="admin">
								<option value="<{$admin.id}>"><{$admin.admin_name}></option>
							</volist>
						</select>
						&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="添加权限"  /></h5>
		
		      <table cellspacing="0" cellpadding="0" border="0"><!-- Table -->
			    <thead>
			        <tr>
			       	 	<th>NO</th>
					    <th>模块</th>
					    <th>权限</th>
				    </tr>
		        </thead>
				    
			    <tbody>
        		<volist name="allpower" id="allpower">
				     <tr>
				     	<td ><{$i}></td><td><{$key}></td>
					    <td>
					    <foreach name="allpower" item="power">
					    	<input type="checkbox" value="<{$power.power_id}>" name="power[]" /><{$power.power_name}>&nbsp;&nbsp;&nbsp;&nbsp;
					    </foreach>
					    </td>
				    </tr>
				   
			    </volist>
		        </tbody>
		        </table>
		 </form>       
		        
		        </div>
		        </div>
</div>
</body>
</html>





